﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using TyMES.Model.Record;


namespace TyMES.ViewModel.Record.SkipOperationsVMs
{
    public partial class SkipOperationsTemplateVM : BaseTemplateVM
    {
        [Display(Name = "SN")]
        public ExcelPropety Snnumber_Excel = ExcelPropety.CreateProperty<SkipOperations>(x => x.Snnumber);
        [Display(Name = "工序编码")]
        public ExcelPropety OperationCode_Excel = ExcelPropety.CreateProperty<SkipOperations>(x => x.OperationCode);
        [Display(Name = "工序ID")]
        public ExcelPropety OperationId_Excel = ExcelPropety.CreateProperty<SkipOperations>(x => x.OperationId);
        [Display(Name = "工序名称")]
        public ExcelPropety OperationName_Excel = ExcelPropety.CreateProperty<SkipOperations>(x => x.OperationName);
        [Display(Name = "工单编号")]
        public ExcelPropety OrderCode_Excel = ExcelPropety.CreateProperty<SkipOperations>(x => x.OrderCode);
        [Display(Name = "工单ID")]
        public ExcelPropety OrderId_Excel = ExcelPropety.CreateProperty<SkipOperations>(x => x.OrderId);
        [Display(Name = "是否跳站")]
        public ExcelPropety IsSkip_Excel = ExcelPropety.CreateProperty<SkipOperations>(x => x.IsSkip);
        [Display(Name = "添加时间")]
        public ExcelPropety AddTime_Excel = ExcelPropety.CreateProperty<SkipOperations>(x => x.AddTime);
        [Display(Name = "编辑时间")]
        public ExcelPropety EditTime_Excel = ExcelPropety.CreateProperty<SkipOperations>(x => x.EditTime);
        [Display(Name = "前工序编码")]
        public ExcelPropety LastOperationCode_Excel = ExcelPropety.CreateProperty<SkipOperations>(x => x.LastOperationCode);
        [Display(Name = "产线编码")]
        public ExcelPropety LineCode_Excel = ExcelPropety.CreateProperty<SkipOperations>(x => x.LineCode);
        [Display(Name = "下一个节点")]
        public ExcelPropety NextNode_Excel = ExcelPropety.CreateProperty<SkipOperations>(x => x.NextNode);
        [Display(Name = "后工序编码")]
        public ExcelPropety NextOperationCode_Excel = ExcelPropety.CreateProperty<SkipOperations>(x => x.NextOperationCode);
        [Display(Name = "后工序ID")]
        public ExcelPropety NextOperationId_Excel = ExcelPropety.CreateProperty<SkipOperations>(x => x.NextOperationId);
        [Display(Name = "父工序编码")]
        public ExcelPropety ParentOperationCode_Excel = ExcelPropety.CreateProperty<SkipOperations>(x => x.ParentOperationCode);
        [Display(Name = "父工序ID")]
        public ExcelPropety ParentOperationId_Excel = ExcelPropety.CreateProperty<SkipOperations>(x => x.ParentOperationId);
        [Display(Name = "工艺路线名称")]
        public ExcelPropety RouteName_Excel = ExcelPropety.CreateProperty<SkipOperations>(x => x.RouteName);
        [Display(Name = "工艺路线编号")]
        public ExcelPropety RouteNumber_Excel = ExcelPropety.CreateProperty<SkipOperations>(x => x.RouteNumber);
        [Display(Name = "工艺路线版本")]
        public ExcelPropety RouteVersion_Excel = ExcelPropety.CreateProperty<SkipOperations>(x => x.RouteVersion);
        [Display(Name = "排程编号")]
        public ExcelPropety ScheduleNumber_Excel = ExcelPropety.CreateProperty<SkipOperations>(x => x.ScheduleNumber);
        [Display(Name = "排序")]
        public ExcelPropety Sort_Excel = ExcelPropety.CreateProperty<SkipOperations>(x => x.Sort);
        [Display(Name = "是否有效")]
        public ExcelPropety IsValid_Excel = ExcelPropety.CreateProperty<SkipOperations>(x => x.IsValid);

	    protected override void InitVM()
        {
        }

    }

    public class SkipOperationsImportVM : BaseImportVM<SkipOperationsTemplateVM, SkipOperations>
    {

    }

}
